:root {
    --mdc-theme-primary: #03a9f4;
    --mdc-theme-secondary: #26A69A;
    --mdc-theme-on-primary: #fff;
    --mdc-theme-on-secondary: #fff;
}

html, body, div {
    font-family: "Helvetica", "Arial", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    outline: none;
}

a, abbr, acronym, address, applet, article, aside, audio, b, big, blockquote, body, canvas, caption, center, cite, code, dd, del, details, dfn, div, dl, dt, em, embed, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, html, i, iframe, img, ins, kbd, label, legend, li, main, mark, menu, nav, object, ol, output, p, pre, q, ruby, s, samp, section, small, span, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, time, tr, tt, u, ul, var, video, h3 {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    vertical-align: baseline;
}

h2 {
    font-size: 18px;
    font-weight: bold;
}

body {
    padding: 0;
    margin: 0;
    display: flex;
    height: 100vh;
}

li {
    list-style: none;
}

.mdc-drawer-fixed {
    border-color: rgba(0, 0, 0, .12);
    background-color: #fff;
    border-radius: 0 0 0 0;
    z-index: 7;
    width: 256px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    box-sizing: border-box;
    height: 100%;
    transition-property: -webkit-transform;
    transition-property: transform, -webkit-transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    border-right-width: 1px;
    border-right-style: solid;
    overflow: hidden;
    overflow-y: auto;
}

.container aside.mdc-drawer {
    transition: .15s;
}

.mdc-drawer-app-content {
    flex: auto;
    overflow: auto;
    position: relative;
    transition: .15s;
}

.main-container {
    padding: 0 16px;
    min-width: 990px;
    box-sizing: border-box;
}

.app-bar {
    position: absolute;
}

.mdc-top-app-bar {
    z-index: 8;
    box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, .12);
}

.mdc-list-item-fix {
    position: relative;
    align-items: center;
    justify-content: flex-start;
    line-height: 48px;
    padding: 0 16px;
    overflow: hidden;
}

/* 修复list内部文本未垂直居中 */
aside.mdc-drawer .mdc-tree {
    width: 256px;
}

aside.mdc-drawer .mdc-list-group__subheader {
    margin-block-start: 0;
    margin-block-end: 0;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    line-height: 48px;
}

aside.mdc-drawer .mdc-drawer__content li h3 {
    padding-left: calc(16px * var(--ratio));
}

/*TODO-WARN: 替换最新 mdc table 样式,目前官方还未实现该组件 */

/* material component web table */
.mdc-shadow--2dp {
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
}

.mdc-data-table {
    width: 100%;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-collapse: collapse;
    white-space: nowrap;
    font-size: 13px;
    background-color: rgb(255, 255, 255);
    display: table;
}

.mdc-data-table__container > div {
    margin: 16px auto;
}

.mdc-data-table td:first-of-type, .mdc-data-table th:first-of-type {
    padding-left: 24px;
}

.mdc-data-table__cell--non-numeric.mdc-data-table__cell--non-numeric {
    text-align: left;
}

.mdc-data-table th {
    position: relative;
    text-overflow: ellipsis;
    font-weight: bold;
    line-height: 24px;
    letter-spacing: 0;
    height: 48px;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.87);
    padding-bottom: 8px;
    box-sizing: border-box;
}

.mdc-data-table td, .mdc-data-table th {
    padding: 12px 18px;
    text-align: right;
}

.mdc-data-table .thead-fixed th {
    padding-top: 8px;
    vertical-align: middle;
}

.mdc-data-table tbody tr.is-selected {
    background-color: #e0e0e0;
}

.mdc-data-table tbody tr:hover {
    background-color: #eee;
}

.pagination-container {
    display: flex;
}

.pagination-container .count {
    flex: 1;
    padding: 12px 0;
}

.pagination-container ul li {
    list-style: none;
    float: left;
    display: flex;
    align-items: center;
    height: 100%;
}

.pagination-container ul li:first-of-type button {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.pagination-container ul li:last-of-type button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.pagination-container ul li:not(:first-of-type):not(:last-of-type) button {
    /*border-radius: 0;*/
    padding: 1px 0 0;
    min-width: 36px;
    border-radius: 100%;
}

/*mdc-table operator-container*/
.operator-container {
    display: flex;
    align-items: center;
}

.btn-container {
    flex: 2;
}

.search-container {
    flex: 1;
    max-width: 250px;
    min-width: 250px;
}

/*mdc-table operate-container*/

/* material component web table */


/* custom */
.mdc-panel__margin-8 {
    margin-top: 8px;
    margin-bottom: 8px;
}

.mdc-panel__margin-16 {
    margin-top: 16px;
    margin-bottom: 16px;
}

.mdc-panel__padding-8 {
    padding: 8px;
}

.mdc-panel__padding-16 {
    padding: 16px;
}

.mdc-text-field-row {
    width: 100%;
}

.mdc-text-field-row {
    min-width: 250px;
}

.mdc-text__align-left {
    text-align: left;
}

.mdc-text__align-center {
    text-align: center;
}

.mdc-text__align-right {
    text-align: right;
}

.mdc-card__non-shadow {
    box-shadow: none;
}

.mdc-container__relative {
    position: relative;
}

.mdc-container__absolute {
    position: absolute;
}

.form-container {
    width: 85%;
    margin: 72px auto 0;
}

/* 修正弹窗最大宽度560px,在父容器上指定该类 */
.mdc-dialog__surface__fixed .mdc-dialog__surface {
    max-width: 100%;
}

.mdc-layout-grid-dialog__fixed.mdc-layout-grid {
    padding-top: 0;
    padding-bottom: 0;
}

/* 修正弹窗文本\n不换行 */
/*.mdc-dialog__content {*/
/*    white-space: pre-line;*/
/*}*/
.mdc-button--circle {
    padding: 0;
    min-width: 36px;
    border-radius: 100%;
}

.mdc-non-visibility {
    visibility: hidden;
}

.mdc-non-display {
    display: none;
}

.mdc-float__left {
    float: left;
}

/*修复a标签disabled无效的问题*/
a[disabled] {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(0, 0, 0, 0.14), 0 0 0 0 rgba(0, 0, 0, .12) !important;
    background-color: rgba(0, 0, 0, .12) !important;;
    color: rgba(0, 0, 0, .37) !important;;
}

.pointer {
    cursor: pointer;
    user-select: none;
}

/* 取消icon字体的双击效果 */
i.material-icons {
    outline: none;
    user-select: none;
}

/* 修复弹框被遮盖 */
.mdc-dialog {
    /*z-index: 10000;*/
}

[data-ratio="1"] {
    --ratio: 1;
}

[data-ratio="2"] {
    --ratio: 2;
}

[data-ratio="3"] {
    --ratio: 3;
}

[data-ratio="4"] {
    --ratio: 4;
}

[data-ratio="5"] {
    --ratio: 5;
}

[data-ratio="6"] {
    --ratio: 6;
}

[data-ratio="7"] {
    --ratio: 7;
}

[data-ratio="8"] {
    --ratio: 8;
}

[data-ratio="9"] {
    --ratio: 9;
}

[data-ratio="10"] {
    --ratio: 10;
}

/*  mdc-tree  官方暂时没有该组件*/
.mdc-tree {
    max-height: 100vh;
    overflow-y: auto;
    width: 280px;
    float: left;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    overflow-x: hidden;
}

.mdc-tree .mdc-checkbox {
    display: block;
    float: left;
}

.mdc-tree ul {
    font-size: 1.08rem;
    list-style-type: none;
}

.mdc-tree-heading-container {
    display: flex;
    align-items: center;
    border-radius: 4px;
    justify-content: space-between;
    padding: 0 8px;
}

.mdc-tree-heading-container:hover {
    color: #202124;
    background-color: rgba(0, 0, 0, .04);
}

.mdc-tree .mdc-tree-heading-container:not(:first-of-type) {
    border-top-right-radius: 0;
    border-top-left-radius: 0;
}

.mdc-tree ul li .mdc-tree-heading-container {
    border-radius: 0;
}

.mdc-tree .mdc-tree-heading-container:not(:last-of-type) {
    border-bottom-right-radius: 0;
}

.mdc-tree-heading-container.active {
    background-color: #e0e0e0;
}

.mdc-tree .mdc-tree-heading {
    font-family: Roboto, sans-serif;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5rem;
    letter-spacing: .04em;
    text-decoration: inherit;
    text-transform: inherit;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    color: #202124;
    margin-bottom: 5px;
    font-size: .875rem;
    cursor: pointer;
    user-select: none;
    padding: 8px 24px;
    margin-block-start: 0;
    margin-block-end: 0;
    width: calc(100% - 100px);
}

.mdc-tree-list {
    font-family: Roboto Mono, serif;
    font-weight: 500;
}

.mdc-tree-list__item {
    position: relative;
    /*min-height: 42px;*/
    /*padding-left: 24px;*/
    padding-bottom: 0;
}

.mdc-tree-link[data-ratio] {
    padding-left: calc(16px * var(--ratio));
}


.mdc-tree-link.mdc-ripple-upgraded {
    --mdc-ripple-fg-opacity: 0.16;
}

.mdc-tree-link, .mdc-tree-link:active, .mdc-tree-link:focus, .mdc-tree-link:hover {
    text-decoration: none;
}

.mdc-tree-list__item--active > .mdc-tree-link {
    font-weight: 500;
    color: #202124;
    position: relative;
}

.mdc-tree-link {
    font-family: Roboto, sans-serif;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5rem;
    font-weight: 400;
    text-decoration: inherit;
    text-transform: inherit;
    --mdc-ripple-fg-size: 0;
    --mdc-ripple-left: 0;
    --mdc-ripple-top: 0;
    --mdc-ripple-fg-scale: 1;
    --mdc-ripple-fg-translate-end: 0;
    --mdc-ripple-fg-translate-start: 0;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    will-change: transform, opacity;
    position: relative;
    padding: 8px;
    font-size: .875rem;
    letter-spacing: normal;
    overflow: hidden;
    color: #616161;
}

.mdc-tree-heading-container i.toggle-cell {
    transition: all .5s;
}

.mdc-tree-toggle__expanded {
    transform: rotateZ(-90deg);
    transition: all .5s;
}

/*  mdc-tree  官方暂时没有该组件*/

/* animation */
/* mdc-fade-out: 透明度加缩放 */
.mdc-fade-out {
    animation: mdc-fade-out;
    animation-duration: .3s;
    animation-fill-mode: forwards;
}

/* 仅透明度 */
.mdc-fade-out-simplify {
    animation: mdc-fade-out-simplify;
    animation-duration: .3s;
    animation-fill-mode: forwards;
}

@keyframes mdc-fade-out {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0;
        transform: scale(.8);
    }
    100% {
        opacity: 0;
        transform: scale(.8);
    }
}

@keyframes mdc-fade-out-simplify {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

/* mdc-fade-out */
/* animation */

/* custom */

